package bite;

import java.util.Scanner;

/**
 * Creared with IntelliJ IDEA.
 * Description:【字符串反转】
 * 接受一个只包含小写字母的字符串，然后输出该字符串反转后的字符串。（字符串长度不超过1000）
 * User:yxd
 * Date:2022-05-03
 * Time:22:21
 */
public class Day20_1 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s = input.next();
        int l = 0;
        int r = s.length() - 1;
        char[] c = s.toCharArray();
        while(l < r){
            char ch = c[l];
            c[l] = c[r];
            c[r] = ch;
            l ++;
            r --;
        }
        for (int i = 0; i < c.length; i++) {
            System.out.print(c[i]);
        }
    }
}
